package njust.domain;

import java.util.HashSet;
import java.util.Set;

@SuppressWarnings("serial")
public class Goods implements java.io.Serializable {
	private int id;
	private String goodname;
	private java.sql.Timestamp time;
	private String state;
	private String classification;
	private int pageview;
	private int agingdegree;
	private String price;
	private boolean bargin;
	private String describe;
	private String url;
	private Set<Image> image = new HashSet<Image>();
	private Set<Message> message = new HashSet<Message>();
	private User user = new User();
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public java.sql.Timestamp getTime() {
		return time;
	}

	public void setTime(java.sql.Timestamp time) {
		this.time = time;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getGoodname() {
		return goodname;
	}

	public void setGoodname(String goodname) {
		this.goodname = goodname;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getClassification() {
		return classification;
	}

	public void setClassification(String classification) {
		this.classification = classification;
	}

	public int getPageview() {
		return pageview;
	}

	public void setPageview(int pageview) {
		this.pageview = pageview;
	}

	public int getAgingdegree() {
		return agingdegree;
	}

	public void setAgingdegree(int agingdegree) {
		this.agingdegree = agingdegree;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public boolean isBargin() {
		return bargin;
	}

	public void setBargin(boolean bargin) {
		this.bargin = bargin;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public Set<Image> getImage() {
		return image;
	}

	public void setImage(Set<Image> image) {
		this.image = image;
	}

	public Set<Message> getMessage() {
		return message;
	}

	public void setMessage(Set<Message> message) {
		this.message = message;
	}

}
